package com.fisicaapp;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;

public class ActMenuCinematica extends Activity {

	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.menu_cinematica);
	} 
	
	@Override
	  public boolean onCreateOptionsMenu(Menu menu) {
	      // Inflate the menu; this adds items to the action bar if it is present.
	      getMenuInflater().inflate(R.menu.menu_volver, menu);
	      return true;
	  }

	  /* Items del menu */
	  public boolean onOptionsItemSelected(MenuItem item) { //acciones para los elementos del menu
	      switch (item.getItemId()) {
	      
	      case R.id.VolverX:
	      	finish();
	          
	      }
	      return true;
	  }
	

	public void aceleracion(View view) {
        Intent i = new Intent(this, Actaceleracion.class );
        startActivity(i);
  }
	public void trayectoria(View view) {
        Intent i = new Intent(this, Acttrayectoria.class );
        startActivity(i);
  }
	public void proyectil(View view) {
        Intent i = new Intent(this, Actproyectil.class );
        startActivity(i);
  }

}
